<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <!-- 引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
  <style>
    [v-cloak] {
      display: none;
    }

    body,
    html,
    #app {
      height: 100%;
    }

    * {
      margin: 0;
      padding: 0;
    }

    .wrapper {
      height: 100%;
    }

    .el-header,
    .el-footer {
      background-color: #b3c0d1;
      color: #333;
      text-align: center;
      line-height: 60px;
    }

    .el-aside {
      background-color: #d3dce6;
      color: #333;
      text-align: center;
      line-height: 200px;
    }

    .el-main {
      background-color: #e9eef3;
      color: #333;
      text-align: center;
    }
  </style>
</head>

<body>
  <div id="app" v-cloak>
    <layout>
      <template v-slot:navbar>  
        <navbar></navbar>
      </template>
    </layout>
  </div>
</body>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script type="module">
  import routes from "./router.js"
  import components from "./components/index.js"

  const router = new VueRouter({
    routes, // (缩写) 相当于 routes: routes
  });

  const app = new Vue({
    router,
    components
  }).$mount("#app");
</script>

</html>